package com.SunSoft.PhoneRemoteControl;

import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.AutoCompleteTextView;
import android.widget.EditText;

final class be
  implements AdapterView.OnItemSelectedListener
{
  public final void onItemSelected(AdapterView paramAdapterView, View paramView, int paramInt, long paramLong)
  {
    this.a.m = paramInt;
    int i = 0;
    while (true)
    {
      if (i >= MainControl.y(this.a).length)
        return;
      if (MainControl.z(this.a)[paramInt].equals(MainControl.y(this.a)[i].c))
      {
        if ((this.a.o) && (MainControl.d))
        {
          this.b.setText(MainControl.y(this.a)[i].c);
          this.c.setText(MainControl.y(this.a)[i].d);
        }
        this.a.b(i);
        this.d.setAdapter(MainControl.A(this.a));
        this.e.setAdapter(MainControl.B(this.a));
        MainControl.a("Test", "type_id:" + String.valueOf(i));
        this.a.n = i;
        return;
      }
      i += 1;
    }
  }

  public final void onNothingSelected(AdapterView paramAdapterView)
  {
  }
}